Deleting wrong class