fixed binornd problem