Bugfix in record class