Fixed a bug where blocks where selection was with replacement