fixed some bugs with no values given in adding new stock