Fixed bug with converting float points to int.