Fix records not deleting after sync using cache property