Fix some perl errors introduced by ui_link conversion