Order class bug