Fixed a bug where metadata wasn't being validated.