Fixed a few bugs pertaining to the postmetadata class