fix for activerecord issue