Fixed error with %d vs %f.