If the plaint has been returned due to jurisdictional issues then you may have to file a suit afresh before the appropriate court, if you plan to prefer any appeal against this decision, probably you may not get any relief from the appellate court also.
Hence without wasting any time you may act swiftly.