fix for debug erro