fix max skill ranks & protection issues