fixing insertion of $theme where a leading dot was missing