Fix for metadata loading issue

Fix for #50