[MASTER] Traceback in stock. #3117

Hello,
Fixed the issue (#3117), When install a first module stock than give a traceback.