corrected a bug in posts