fixed a bug when all of the screenshots returned null;