chunk dispose fixed; window format changed;

plus minor bug fix