Fix problem with permission in class static initializer