fixed stupid bug in LCS legacy api