fixed bug in the filtering directive filtering positive and negative numbers

fixed bug in the filtering directive filtering positive and negative numbers