Fixed a bug that was causing an offset problem when drawing.