Fix unexpected return error.