Minor error path fix