fix the exception