Caught expected exception. Type of exception: RangeError: Maximum call stack size exceeded. Failed