fixed ls.cpp compiler error