Fixes filter problem
see http://stackoverflow.com/questions/16403645/how-to-create-a-filter-in-angularjs/16403947#16403947
and http://jsfiddle.net/dPWsv/1/