Fixed bug where filterName was being taken from teh global namespace