fixed int to Double casting bug
fixed int to Double casting bug