Fixed a bug in the permission bean