error for entering the same stock

fixed #24