This works fine if you have one frame. However my application has several. Do you know how to work around this issue?