Fix method call when adding metadata