Fixed createlog issue and issue when creating multiple logs in one session.