restore correct setting of title instead of value

the problem was the wrong context, not the way the title was set