bugfixing

close #6