fixed reconstruction code