Fix a bug in priviledge.rb