Updated local_modify filter to fix an issue with box search