fixed eventual crash on tags