Fixes erasing, drawing at edges