Fixed a bug for the GetFilteredCutout that had to do with wrap around.