IDEX-742: Double replaced with primitive