Fixed integration issues with scale thresh