Fix some damage related bugs.