Fixed copy-paste bug in normalsampling