fixed max-rows bug and missing fetch-size option