fix a bug for flag ajax link