fix bug in nonmono.sh