syntax fix in ls.cpp