fixed last delete bug