fixed bug were ids weren't created