palette fixes

Signed-off-by: MishkaRogachev <mishkarogachev@gmail.com>