Fix the windows resize

Especially the missing var