yet another floating point execption fixed