Fixed chat parsing for sync