fix profile bug
fix another profile error
Permissions work for conditions