fix wrong window size