fix bug for loading style out of dir