Fixed error when adding permission levels