Fix window unreachable

tackle issue #17