fix class extention issues which causes form_for to crash