fix crash when select object in view