debug log fix