ensure style index is reset when stylesheet path is reset