Fixed issue relating to int conversion.