Fixed notification function