Fix some missing part of judge service. Still un-tested.