fixed treasure finding bug