fix window border, solves #1