fix error path

Change-Id: Iffa0cbaa15064e0587f98e6f0885343df34a6629