Gap penalty should be average gap