Fix uart initialization