fix carousel js in dialog.js