Fix drawing board code