fixed bug when action /prizes undefined variable