fixed weird bug with drawing undoing