Fixed bug in resolution functionality