Issue with partitioning by chr