call cd after invoke ac for the first time, with $1.