NumberFormatException and modified stock adding