CD-126 Attempt to fix object is not a function error