more fixes for enabling / disabling webgl