fixed issue caused by deleting