fixed bug with different types in stock and in Draw function.