Fixing minor barometer calculations