Fixes issue with bootstrap carousel events