Fixing a bug with the carousel goto logic