remove max from seq

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>