fix Maximum Call Stack exceeded bug