fixed problem with affiliate orders