fixed bug in reimpute