Fix using fixed width/height.
Fix cases where scoring system chose losing solutions.