bug fix and additional check for stock size setting