fillmissing: important bugfixes for pull request