solved the crash due to thq LD calculator class