Fixes random range