background substraction flag now fixed