Fix small bug with adjust palette