Hidden fields are not working fine