fix exception when running yiic commands