Fix create-reference

The `:ref` should be added to the end of the path, not placed in the body.