Fix incorrect access modifiers