Event logging bug fixed