Fixing automatic closing of notifications