Fix bug. delete debug code.