fix floating calc crash