fix for multiple tabs compatibility