fix initial state of location widget