fix the calculation of the broadcast address