Fix a bug (undefined id) when adding a form