Fixed bug in formatting engine.