Collapse of the wave function related to the use of Schmidt decomposition