fix snapshots building