Fix unexpected error