fix problem with tabs going inactive