fixed bug for generation loader id