Fixed shitty math