restore original premissions