Set well length to document height. fixes #367.