Fix ngmin bug around modal instances