Fix drawing bug.