fixed bug in post_model