fixed scatter on ind==0, minloc zero index bug