one more quick fix... now legendloader hits end of file properly