Fix bug - stop modifying filters in the utility functions

 'thal shal not modify parameters'