fix scalar filters. fixes #31