Inserted missing resolution check
Fixed resolution parsing error