Use correct data type when setting number of bounces