Fixed bug with CheckTypeDouble