finally fixed that debug error