Fixing offset values in draw()