how to fix this reward assignment issue