Embedded form using source code is randomly not working