Fixed get_state() to match server