Change state to number value