Fixed issue with filter where when a directory was selected no value would be returned