fixed code to handle missing location in report