Bugfix to string-ref