Fixing minor errors in notifications code.