added fix to getAllPost