Fix pview bug