floating calc bugfix