Fix form rendering errors