Embedded form does not show correctly sometimes