fixed issues except #7 mentnd at http://is.gd/snwm_issues