Fix 0 for INFinite duration and attack/fade inversion

Fixes #2 and #5 (in case the attack/fade are adjusted with the edit fields).