Fixed auto restricting dangerous functions