fixed errors in wildcard permission