Fix communication with simulator