Funny partitioning behaviour