removing empty tags for firefox compatibility