Fixed order edition if entries is empty. In this case order should be deleted.