Fixing bugs with the query not showing all stock