fixed bug in guess wavefunction transformation. fortunately, the bug doesn't affect any results