correct valueq, bug#1914

Tested successfully in Linux.