fix bugs of ui-bootstrap