fixed build script for filter