Fixed some debug output stuff