fix bug with certain svg setups