fix, Master file might be larger then needed

reported by Nisseem S. Nabar