fix flagsaving fix comlete filter logic