drawing bugfix