Fixed some bugs in super basic math functions :/