Update $post to avoid  non-object error in some configs