Correct globalPS Size and movingWindow global Size

- add savety assert