fixed bug in sample dmrg code