Fix elementVisibleRect