Fixed the loss caluclation