Removed calls to to_d which is apparentlt missing in 1.9.2