Added global gem and fixed error on the order index page.