fix default check for apply_to & default type (typo with big
consequences)