fixed some Math