fixed incompatibility with ui.bootstrap