Fixed fetch_row() and fetch_val()