Bug fixes for ODBC readers