fix palette voffset problem