fixed smartactiverecord