fix view getting broken on reuse