Fix incorrect function visibility