fix error path

Change-Id: I410a6c1f19dfe316d198c2d02e4dc09b007be201