Fix a bug of the combination of takeover and rackawareness