Update compat.lua (Fix for change gold)

Fix for change gold bug.