fixed bug for loading math