fixed glitch svg rect animation