Are you flashing the stock ROM for your particular model of S4? If not, if it's a custom ROM, it could be a bad ROM and if it's for another variant of the S4, that would be why.
The ROM supplied by the manufacturer for the particular variant of the phone - as opposed to a custom ROM - something that some developer has modified or has created for the phone from AOSP (the Android Open Source Project).