fixing bug in remote array isAllLoaded