Fix #41, record deleting