Fix the documentation and the mww last window loop range