fix loop and wrong filter name