update to the newer library version (no StateChangedNotification)
Fixed notifications
fix an exception in notifications due to wrong casting