Fix for issue #1228
Adding transaction on versioned objects