Exposed ensureProperties and fixed the package file