Fix error with real time notification