Values weren't calculated correctly