fixed issue with degug output