fix realtime syntax error