Resolve problem with drawing