reset state properly on relay construct