Fixed custom id generator example