critical fix for capsule#new: undefined id