Fix bug get profit