fixed multiple flag issue for reals this time.