Fixed issue with possibly missing pellets when on edge