minor fix
minor fix in permission script