Stack overflow error is fixed