Fixed bug in debug.