fix the uart driver error.