fix stupid error in moving endpoints