fixed bug just introduced in sample_sky