fix the unnecessary complex url when exception is occured