Bug fix: removed temporary debug code