Make Inline "with" hook compatible with old and new versions.