stocPrim bug fixed