Fix bug with mining fee