fix activate modal issue