make sure that class locale is always reset