Fix bug in percvm