[backend] fix appdata generation code

Thanks DimStar!