fixed the window that applied the mean filter