Fix apiKey resolving. Properties were missing