Nonetheless, the applicant for either an invention patent or a petty patent may switch the Applied type of patent to the other one before the registration of the invention and the grant of petty patent or before the publication of the application, as the case may be