vm bug and fittype bug corrected