fix issue that was preventing form submit