Fix double-printing for file-less locations.