"undefined" appears at the top of forms