Fix an bug added by 5b9f9751baedfeba4a0771fb18b50cba3c5ea69b.