fix upper bits