fixed #13 Maximum call stack size exceeded