fixed bug in waiting for reward to finish.