fix: wrong window size at startup in some cases