Bugfix for mdcovnert

Fix crashing when using the `-i` flag. two tests included.