Fix AC in shell-mode