Correct globalPS Size and movingWindow global Size