basically fixed the not everything is calculated error thing, but js is weird