workaround max stack bug