fixed issue with debug=false