Fixed visibility of dialog with bootstrap modal.