error path fixed