Find a stock 4.2x (SamMobile probably has one for your phone - put the model NUMBER, not "S4", in the search box) and reflash it. (You could also use 4.3, but with the bugs that have been reported for 4.3, even in the S4, I'd rather have an older working ROM than a newer buggy one.)