Fixes #4, window resize