Fixed bug in rules during vm creation.