Fixed value formatter to prevent crash on text values