Fixed the exception