fix background palette hack issue.