Bug in case value is undefined