Fix bugs in debug