Fixing bug references other than CODE were allowed as a type