Fixed always restart required for dangerous functions