fix access to localFrame