Not a bug - the game has diminishing gold returns from kills once you're above 1000g. The richer you are, the less gold drops from regular creatures (bosses are exempt). Your Leviathan has a base 20g drop, but at high gold totals it tapers down. It's there to keep gold meaningful in the late game rather than becoming infinite.