Bugfix: previous record
test