Fixed parameter type for IncompleteRead exception

Wrong parameter type for IncompleteRead error caused new exception.