Updated svg library

Fixes some bugs