Form does not display sometimes