clean up on svg loading