Aren't you supposed to test if the previousOrder field has been set