fix call to entityValue