Fix mode change