fix mega angular bug