fixed bugs that occure when no posts availabe
fixed search