Fixing a glaring mistake in cabs2 function