Fixed bug where arguments not passed to trainer