fixed metadatas not generating correctly