fixed specs bug for post model