Fixes #afterCreate hook not being called.