fix bug with safari webgl detect