Fixed display of boxes outside of the canvas