Fixed checkPermission for ICS