fix bugs with debian package