fix drawing outside
Fix drawing bug