Fixing bad ref