Fix calculcate bonus bug