Fixed int conversion issue