Fixing relic stacking bug