try something to get rid of deprecated pass by reference errors with form_state array