fixed a bug on addon reactivated