Fix bug in debug view