Small bug fix for private flags being sorted as public