fixed bug with wrong dump