bug fix for posts amount