Error fix in stockpanel