fix little bugs in graphics.