fix UIMenuNoTitle and r_preparemap\'s error