buaazp: fix gif save array index error and remove unused value