Fix not casting arg to int