Fixing freedrawing issue (#1780)

Simple patch for fixing the issue.