[SQ] Fix for window functions