bugfix:  not defined in mmapp angularjs directive