Add back toInt instead of toFloat in positions.