Fixed issue with damage max calculations