fixes realtime error