fixed webgl errors on new browsers