fixed equality check
auto fill AR ID and version fields