Fix for unchecked exception.