Added error when metadata could not be loaded