Fix crashes when using some trex form fields.