fix location printing