fixed obtaining posts problem if require failed