fixed delete records