corrected build for some examples