Fix damage computation