Make sure fields are set before parsing them