Fix key in deleteRecord