fix quantity being treated as id