Fixed nasty endpoint URL bug.