Fix bug: remove debug code