Fixed bug in permission TAB-complete