fix buggy realtime edition