Removed bug in get_rows function.