fixed some errors in permission printing