bugfix in deletion