Fix on each function on form elements