Fixed error in Post class