Fix bug in debug page