Fixes --ignore-missing flag

The --ignore-missing flag was having no effect. This fixes it.