fixing blank location field if no location is entered