Fix a minor bug in the base active record