Fix math script