Bugfixes for Go to Metadata

For consistency you should create an active pattern for this case :)