fixed bug in dryMode