fixed bug in calculation selection