[FIX] fixed issue with window never opening again when closed