fix bug for manual stock