[NS-7] fix error logs undefined bug