Fix error in skip_rows() with ManyToMany fields