fix bug that prevented auto-adding addaction