fix endpoint bug I introduced