Fix a bug: the id is now correctly set.