Fixed window sizing bug