Fixed associatedObject creation issue