fixed problem at delete records