fix bugs in generation of alternative resolutions
Merge pull request #1 from relekang/alternative_resolutions

fix bugs in generation of alternative resolutions