Fixed Realtime API sync issue