fixed initialization bug in triple reconstruction (patch by Alexandra Vintila)
fixed the check for performing sampling (patch by Alexandra Vintila)