Fix minor bur on choose_windows function.

The funtion were not returning the list with the windows/mask.