fix bug in section visibility parsing