[math] fix polyfit init