fixed halfuniform bug in ash.R