small fix to display value fn