minor bug in shuffle fixed