fixed svg drawing bug