fixed activate bug