bugfix: RegisterMenu returns string instead of object path