fixed the exception