Fixed getRows so it only gets rows that "exist"