Fixed a debug bug