Correct commit of activities