fixed infinite loop the dirty way because of weird design in Realtime documentation.