Make new_post working again by fixing couple of issues.