More math fixes (wow)

Signed-off-by: Alec Ari <neotheuser@ymail.com>