[fixes #114] map renders after switching templates.

There was an small problem with the way float points were being localized.