Fixing a bug in the updating of the available values for filter 2d