Bugfixed divission by zero