Bugfixes in stock avail.