Fixed angular-ui/angular-ui#383