Fix issue where createValue was used instead of createRef