Fixed math stupidity (cut me some slack, okay?)