Fixed behavior of posts search