fixed collection api parsing bug.