Fix: Optimizer compared End with End instead of End with Start Improved: Optimizer can invert element if faster