Changed VAM init code