Fixed adding state to order