Fixed problem with modals in component view