fixed issue wth post model