notification works but with bugs