Fix #145 window resize