Fixing the refs. Need to make ripple case insensitive