fixed errors in getPost (now version 0.3.1)