fix notif middleware