Fixed initialize method on generated models