fix bug in LoadEntry for-loop, set otype correctly