fix for window size, @matrix79