Fixed implementations of create and createWithDisposable.