Line 174 destroys the menu completely, it will not show up anymore, you'll have to reload the plugin to be able to see the menu again.
Instead, use:
PHP Code:
show_menu(id, 0, "^n", 1);
Can't help you with the other issue, can't spot the error tbh.
__________________