Fixed problem in bgs file to run file not applying filter