fix bugs for debian