Fixed various UI and compiler errors.