improve #1018 pull request

impoove #1018 pull request which fixed bug of multi resulotion