fixed bug in json not rendering associations