fix math issue ^_^