fixes #190 (delete record functionality broken.)