fixed asynchronous palette generation