Fix warning in orders model