fix the "getValue" medthod