Fix the warning that the last commit introduced. And only round_to_int once.