fix error path

Change-Id: I7ea2bb444114e7ecf8903edcbbbb77ab06b592b7