Fix the non working swap palette icon action.