fix EM.defer + activerecord bug