make current_state work with an empty string