Fixing some debug error messages