fix carousel bug