fixed integer overflow bug in fillmissing