Fix access visibility modifiers
Add missing assertion