isOutAPI() bug fixed (when splitcount == 1)