revert enable-debug in factory