fixed sample compilation