fix form rendering problem