Some views maybe not measured in the constructor
Fix memory leak