bugfix devison by zero