Corrected [RangeError: Maximum call stack size exceeded]. Updated
reference to object