loop does not continue on invalid permissions

loop does not continue on invalid permissions