fix to work with bootstrap modals