bugfix when the value is undefined