Fixing issues with access arguments in the menu hook