bug fix in posts search