HTC software update causes phone to reboot in the TWRP recovery mode and does not update. How to fix it? I just rooted my HTC One (M7) according to LINK. It is s-on, and TWRP (teamwin) recovery is flashed.Rooting is successful and everything seems fine. Except:

When I go in the "setting, about, update software" in the phone, it downloads the HTC updates. But when it tries to run the downloaded updates, it reboots, and it goes into "recovery" mode, where TWRP shows up. What should I do from there? 
I choose system reboot from TWRP and it phone is up as normal, but the updates are still waiting to be run.

How should I apply updates?

Thanks
Official OTA's from HTC could only be installed if you posses the stock recovery.
You can download the right one for you from XDA here.
When you have downloaded it you can just flash it by typing this (with your phone connected in fastboot mode):

fastboot flash recovery path/to/recovery.img

Disclaimer: Probably the update won't work if you have a custom ROM installed on it (custom ROMs sometimes have different packages that the OTA will corrupt). If you want to update via OTA you should first install a stock HTC ROM too.