Fixes bug with customSource (strange angularjs behaviour, bug there perhaps?)