fix realtime check