Fix to calculation of bmr