Found problem with the doubling, fixed it