Fix modifiers of methods/attributes