Why is maxRows set to 0?