Fix display refresh width calculation