Fixed a bug with gold (again)