Fixed a major bug where long calculations were not working properly