fix resetting tables after importing