Fix broken logic when disabling cell data