Fixed running crash when check element visible