Fix call to is_sample