Added a check for resolution to see if it is empty