Fix for commit callback when running multiple sessions