Fix long to int