fixed resolution-bug