Fix UISim... In future do everything in one commit!

Also test if stuff actually compiles before committing. :P