Fix bug in virtual space dynamic schmidt basis