fix window border, resolves #1