Math library error fixed