fix bug when modifying act not yet modified (problem when writing in log file)