fixed the exception for th