added extra check in case pacman is blocked