fix programmatic initialization of plainValue