[bug fix] N_SE-29549, Check if the input value of AvailableCapacity > Ca...

...pacity, set the value to same as capacity.