fix bug about local debug