fixed parsing and setting of state in Address