bug in flagModeDomain