fixed wrong debug output