handling location == null bug