fix for missing 'self' variable in 'notifyTyping'