change flag global instances to 1 instead of true