Fix setting dangerous methods