Added self. before globals

The way they where before made them throw an error