Fixed issue with qvalue()