Fixed bug when server returns error on dirlisting