fixes bug when setting font-face