Fixed a palette bug in RS tile rendering.