fix bug of resolution