fixing carousel errors