fix in calculating of gifts