fixed bug returning the id right away