A consistent formulation of the excluded volume effect in hadron gas at high densities