Fixed making exceptions for dangerous functions in some situations