[WP] Fixed a bug with tabs which failed to close