Fixing rotate plus resolution errors.