Fixes some serial issues.