Default [Q] Trouble with TWRP. Please help

I am having issues with TWRP. I have my galaxy s4 rooted and the customer recovery installed. Whenever I create a back up it works flawlessly. But when I try to do a wipe/factory reset or a restore or an install of a different rom, the system starts then the recovery resets itself. I cannot figure out what the problem is.