Bug fix: draw outside pages

Fixes bug when the user draws outside of a page.