Bug fix double to integer