Ok but literally designed to make you pay or something. I got to a level where everything was fully upgraded and riots still kept breaking out to the point of losing all my prisoners. Not sure if this is a bug or intended feature