fix the uart interrupt write