Improved debug

fixed