bugfix at deleting last drawing