fix cap words endpoint