Fixed a small error in debug mode