Fixing double event firing
DebugMode flag