Bugfix for setting title from metadata

Resolves #159