fixing a lightning collision bug