Hidden fields not displaying properly