ASSERT condition in Format() function was fixed.