correct deactivation of render states