bug fix: doesn't work in window 7