Changes to make UIEditor compilable.