Fixing bug with quotes around ref name