Stuff for fixing the lists and palette