fix init helper for custom mapping