Fixed the delete eratic behavior