spot detection bug when client set both ->max and ->maxh