Fixed a ton of CPU-bugs, mostly related to flags