allowedTypes fix