and suddendly Arduino IDE cant upload any sketch inside an UNO

Have you added the ~10 uf capacitor between ground and reset pin of the arduino you're using as an ISP programmer, after uploading the arduino as isp sketch? You need to do that, or otherwise disable auto-reset in order to make that work.