Fixing undefined var bug: Putting trace back into notifications