Fix: typos

These code changes have been benchmarked to increase EDD's speed, scalability and stability by 500%