fix typo and wrong func call in rint()