Fixed division by zero error
reinitialized files