Fixed a bug with Scribble which caused functions with more than one reference
to break