fix crashes on missnig files

Signed-off-by: James Rubingh <james@wrive.com>