Fixed Lightning causing errors if PKRPG not installed