remove location from debug string as it may cause NPEs