Fixed error of not converting params to int