Fix wrong var name for surfacing errors