Fix bug with filter player function