Since you used AP, so you are AOS (no longer H). If you leave, when you come back you need either AP or H-1 visa.