fix mock device states