fix first edges engine