fixed issue with inflate