Corrected script so items are actually hidden correctly