small legacy fix