corrected bug in metadata module