sonar serial error workaround