Fixed fatal error on sending notifications