Fix visibility parsing