small calculation fix