Fixed nullreference while trying to get orders