Changed method call to clear metadata