mixed cache and invalid name in valueOf() fixed