fix build for multiple samples