Fix some bug for pacman